package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.model.common.buiness.pojo.Product;
import com.zhentao.model.common.buiness.vo.ApProductVo;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ApProductService;
import com.zhentao.mapper.ApProductMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 86150
* @description 针对表【product】的数据库操作Service实现
* @createDate 2024-09-14 19:48:11
*/
@Service
public class ApProductServiceImpl extends ServiceImpl<ApProductMapper, Product>
    implements ApProductService {
@Resource
private ApProductMapper apProductMapper;

    /**
     * 商品查询
     * @return
     */
    @Override
    public ResponseResult productList(ApProductVo productVo) {
        List<ApProductVo> products = apProductMapper.productList(productVo);
        return ResponseResult.okResult(products);
    }
}




